package com.fs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author hua
 * @version 1.0
 * @title Userinfo
 * @description 用户信息
 * @create 2024/3/15 16:03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    @TableId(type = IdType.AUTO)
    private Integer uid;
    private String username;
    private String password;
    private String name;
    private String photo;
    private String email;
    private String telephone;
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    private Date birthday;
    private String sex;
    private Integer state;
    private String code;
}
